
<?php if($this->type == 1){?>


<?php } 

if( $this->emptyResult ) { ?>
<h2><?php echo $this->translate( 'services' ) ?></h2>

	<div class="content">
		<?php echo "Brak arykułów"; ?>
	</div>
<?php  }else{  ?>

	<?php  if($this->type == 1){ 
		$i = 0; foreach( $this->list as $value ) { ?>
	<div class="box">
	<div class="column">
		<div class="colimg"><img src="<?php echo $this->File( $value['Galeries']['Photos']->toArray(), 255 ) ?>" alt=""></div>
		<div class="coltext">
			<div class="prod">
				<div class="name"><?php echo $value['title_' . $this->locale] ?></div>
				<div class="text">
				<?php echo $value['lead_' . $this->locale] ?> 
				</div>
				<div class="avail">
					<a href="{baseUrl}/services/article/id/<?php echo $value['news_id'] ?>/<?php echo $this->Seo( $value['title_' . $this->locale] ) ?>" class="button"><?php echo $this->translate( 'news_more' ) ?></a>
				</div>
			</div> 
		</div>
	<div class="clr"></div>
	</div>
	<div class="end"></div>
</div>

	<?php $i++;}}else {
	?>
	
	<h2><?php echo $this->list['title_' . $this->locale] ?></h2>
<div class="content">
	
	<?php if($this->list['graph'] == 1) {?>
	
	<div class="boximages">
				<div style="float: left;display: inline;margin-right: 20px;"><img src="<?php echo $this->File( $this->list['Galeries']['Photos'], 255 ) ?>" /></div>
	</div>
	<?php } if($this->list['graph'] == 2) {?>
	<script type="text/javascript">
	<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. --> 
	var swfVersionStr = "10.0.0";
	<!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
	var xiSwfUrlStr = "playerProductInstall.swf";
	var flashvars = {};
	flashvars.xml_path = "<?php echo $this->baseUrl(); ?>/index/putter/id/<?php echo $this->list['galeries_g_id'] ?>";
	var params = {};
	params.quality = "high";
	params.bgcolor = "#000000";
	params.allowscriptaccess = "sameDomain";
	params.allowfullscreen = "true";
	var attributes = {};
	attributes.id = "Carnauba_Miotacz";
	attributes.name = "Carnauba_Miotacz";
	attributes.align = "middle";
	swfobject.embedSWF(
	"<?php echo $this->baseUrl(); ?>/public/swf/Carnauba_Miotacz04.swf", "puttercontent", 
	"300", "200", 
	swfVersionStr, xiSwfUrlStr, 
	flashvars, params, attributes);
	<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
	swfobject.createCSS("#puttercontent", "display:block;width:300px;height:200px;");
	</script>
	
	<div style="float: left;display: inline;margin-right: 20px;"><div id="puttercontent"></div></div>
	<?php }?>
	<?php echo nl2br( $this->list['lead_' . $this->locale] ) ?>
	<br /><br />
	<?php echo nl2br( $this->list['body_' . $this->locale] ) ?>
	
	<div class="clr"></div>
</div>
	
		
	<?php }  ?>
	
	<?php if($this->type == 1){?>
	<?php  echo $this->render('global/pager_service.phtml'); }?>

	
		
<?php } ?>